package twentyThreePattern.StructuralPattern7.proxy.DynamicProxy.section1;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyInvocationHandler implements InvocationHandler {

	// 被代理的对象
	Object target = null;

	public MyInvocationHandler(Object obj) {
		this.target = obj;
	}

	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		method.invoke(target, args);

		return null;
	}

}
